package com.beerandjesus.blackjack.ui;

/**
 * User: reverend
 * Date: Feb 9, 2007
 * Time: 10:45:56 PM
 */
public class GameStatus {
    public static int PUSH = 0;
    public static int DEALER_WIN = 0;
    public static int PLAYER_WIN = 0;

    private int status = -1;

    public void push() {
        status = PUSH;
    }

    public void dealerWin() {
        status = DEALER_WIN;
    }

    public void playerWin() {
        status = PLAYER_WIN;
    }


    public boolean isDealerWin() {
        return status == DEALER_WIN;
    }

    public boolean isPlayerWin() {
        return status == PLAYER_WIN;
    }

    public boolean isPush() {
        return status == PUSH;
    }

    public void clear() {
        status = -1;
    }
}
